
<!DOCTYPE html>
<html lang="zh-Hans">


<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
  <meta name="theme-color" content="#202020"/>
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  
    <meta name="keywords" content="RTB,DSP,SSP,ADX," />
  

  
    <meta name="description" content="你眼里的星辰大海·是我从未见过的皓月明空" />
  
  
  
  <link rel="icon" type="image/x-icon" href="/images/footer-logo.png">
  
  <title>网易画中画 - 奇聚广告（360）填充 &amp;&amp; 百青藤广告（百度）高价广告兜底 [ 向阳·Tech ]</title>
  
    <!-- stylesheets list from config.yml -->
    
      <link rel="stylesheet" href="/css/pure-min.css">
    
      <link rel="stylesheet" href="/css/xoxo.css">
    
  
<meta name="generator" content="Hexo 4.1.1"></head>


<body>
  <div class="nav-container">
    <nav class="home-menu pure-menu pure-menu-horizontal">
  <a class="pure-menu-heading" href="/">
    
    <span class="title" style="text-transform:none">向阳·Tech</span>
  </a>

  <ul class="pure-menu-list clearfix">
      
          
            
              <li class="pure-menu-item"><a href="/" class="pure-menu-link">首页</a></li>
            
          
      
          
            
              <li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover">
            
              <a href="#" id="post" class="pure-menu-link">文章</a>
              <ul class="pure-menu-children">
              
                  
                    <li class="pure-menu-item"><a href="/categories" style="color:#202020;" class="pure-menu-link">分类</a></li>
                  
              
                  
                    <li class="pure-menu-item"><a href="/archives" style="color:#202020;" class="pure-menu-link">归档</a></li>
                  
              
                  
                    <li class="pure-menu-item"><a href="/tags" style="color:#202020;" class="pure-menu-link">标签</a></li>
                  
              
              </ul>
            </li>
          
      
          
            
              <li class="pure-menu-item"><a href="/live" class="pure-menu-link">撩胜于无聊</a></li>
            
          
      
          
            
              <li class="pure-menu-item"><a href="https://github.com/irtb" target="_blank" rel="noopener" class="pure-menu-link">Github</a></li>
            
          
      
  </ul>
   
</nav>

  </div>

  <div class="container" id="content-outer">
    <div class="inner" id="content-inner">
      <div class="post-container">
  <article class="post" id="post">
    <header class="post-header text-center">
      <h1 class="title">
        网易画中画 - 奇聚广告（360）填充 &amp;&amp; 百青藤广告（百度）高价广告兜底
      </h1>
      <span>
        
        <time class="time" datetime="2019-12-31T11:41:35.000Z">
        2019-12-31
      </time>
        
      </span>
      <span class="slash">/</span>
      <span class="post-meta">
      <span class="post-tags">
        <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ADX/" rel="tag">ADX</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/DSP/" rel="tag">DSP</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/RTB/" rel="tag">RTB</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/SSP/" rel="tag">SSP</a></li></ul>
      </span>
    </span>
    </header>

    <div class="post-content">
      <h5 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h5><p>1.商务对接<br>2.分别在奇聚广告管理后台和百青藤广告管理后台创建相应的广告位</p>
<h5 id="获取代码"><a href="#获取代码" class="headerlink" title="获取代码"></a>获取代码</h5><blockquote>
<p>奇聚广告获取代码</p>
</blockquote>
<ul>
<li>广告位管理 -&gt; 广告位列表 -&gt; 获取代码</li>
</ul>
<blockquote>
<p>奇聚广告代码示例</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; &gt;</span><br><span class="line">    var mediav_ad_pub &#x3D; &#39;Odujty_2356315&#39;;</span><br><span class="line">    var mediav_ad_width &#x3D; &#39;300&#39;;</span><br><span class="line">    var mediav_ad_height &#x3D; &#39;300&#39;;</span><br><span class="line">&lt;&#x2F;script&gt;</span><br><span class="line">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; language&#x3D;&quot;javascript&quot; charset&#x3D;&quot;utf-8&quot;  src&#x3D;&quot;&#x2F;&#x2F;static.mediav.com&#x2F;js&#x2F;mvf_g4.js&quot;&gt;&lt;&#x2F;script&gt;</span><br></pre></td></tr></table></figure>

<blockquote>
<p>百青藤广告获取代码</p>
</blockquote>
<ul>
<li>网站合作 -&gt; 业务管理 -&gt; 网盟推广 -&gt; 推广位代码 -&gt; 推广位列表 -&gt; 获取代码 -&gt; 异步</li>
</ul>
<blockquote>
<p>百青藤广告代码示例</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot;&gt;</span><br><span class="line">    (function() &#123;</span><br><span class="line">        var s &#x3D; &quot;_&quot; + Math.random().toString(36).slice(2);</span><br><span class="line">        document.write(&#39;&lt;div style&#x3D;&quot;&quot; id&#x3D;&quot;&#39; + s + &#39;&quot;&gt;&lt;&#x2F;div&gt;&#39;);</span><br><span class="line">        (window.slotbydup &#x3D; window.slotbydup || []).push(&#123;</span><br><span class="line">            id: &quot;u5811011&quot;,</span><br><span class="line">            container: s</span><br><span class="line">        &#125;);</span><br><span class="line">    &#125;)();</span><br><span class="line">&lt;&#x2F;script&gt;</span><br><span class="line">&lt;!-- 多条广告如下脚本只需引入一次 --&gt;</span><br><span class="line">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;&#x2F;&#x2F;cpro.baidustatic.com&#x2F;cpro&#x2F;ui&#x2F;c.js&quot; async&#x3D;&quot;async&quot; defer&#x3D;&quot;defer&quot; &gt;&lt;&#x2F;script&gt;</span><br></pre></td></tr></table></figure>

<h5 id="代码合并"><a href="#代码合并" class="headerlink" title="代码合并"></a>代码合并</h5><blockquote>
<p>需要根据需求确认广告位置使用同步加载还是异步加载，同步加载不支持兜底策略，异步加载方式支持兜底策略，兜底策略需使用异步加载</p>
</blockquote>
<blockquote>
<p>合并代码示例</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">&lt;div id&#x3D;&quot;ssp_5811516&quot;&gt;</span><br><span class="line">    &lt;script type&#x3D;&quot;text&#x2F;javascript&quot;&gt;</span><br><span class="line">        var mediav_ad_pub &#x3D; &#39;Odujty_2356315&#39;;</span><br><span class="line">        var mediav_ad_width &#x3D; &#39;300&#39;;</span><br><span class="line">        var mediav_ad_height &#x3D; &#39;250&#39;;</span><br><span class="line">        var mediav_ad_onfail &#x3D; function ()&#123;</span><br><span class="line">            (function () &#123;</span><br><span class="line">                (window.slotbydup &#x3D; window.slotbydup || []).push(&#123;</span><br><span class="line">                    id: &quot;u5811516&quot;,</span><br><span class="line">                    container: &quot;ssp_5811516&quot;,</span><br><span class="line">                    async: true</span><br><span class="line">                &#125;);</span><br><span class="line">            &#125;)();</span><br><span class="line">        &#125;;</span><br><span class="line">    &lt;&#x2F;script&gt;</span><br><span class="line">    &lt;script type&#x3D;&quot;text&#x2F;javascript&quot; language&#x3D;&quot;javascript&quot; charset&#x3D;&quot;utf-8&quot; src&#x3D;&quot;&#x2F;&#x2F;static.mediav.com&#x2F;js&#x2F;mvf_g4.js&quot;&gt;&lt;&#x2F;script&gt;</span><br><span class="line">    &lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;&#x2F;&#x2F;cpro.baidustatic.com&#x2F;cpro&#x2F;ui&#x2F;c.js&quot; async&#x3D;&quot;async&quot; defer&#x3D;&quot;defer&quot;&gt;&lt;&#x2F;script&gt;</span><br><span class="line">&lt;&#x2F;div&gt;</span><br></pre></td></tr></table></figure>

<h5 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h5><p>1.异步加载需360工作人员提前配置CPM高价策略<br>2.showid默认生成的是同步加载格式（Odujty_2356315），异步加载格式是去掉下划线后面的部分（Odujty）<br>3.异步加载模式必须配置 mediav_ad_onfail 代码，才能响应onFail兜底策略</p>

    </div>

  </article>
  <div class="toc-container">
    
  <div id="toc" class="toc-article">
    <strong class="toc-title">目录</strong>
    <ol class="toc"><li class="toc-item toc-level-5"><a class="toc-link" href="#前期准备"><span class="toc-text">前期准备</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#获取代码"><span class="toc-text">获取代码</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#代码合并"><span class="toc-text">代码合并</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#注意事项"><span class="toc-text">注意事项</span></a></li></ol>
  </div>


  </div>
</div>
<div class="copyright">
    <span>本作品采用</span>
    <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener">知识共享署名 4.0 国际许可协议</a>
    <span>进行许可。 转载时请注明原文链接。</span>
</div>


  
    <div class="post-nav">
      <div class="post-nav-item post-nav-next">
        
          <span>〈 </span>
          <a href="/2019/12/30/Webservice-WSDL/" rel="next" title="Webservice WSDL">
          Webservice WSDL
          </a>
        
      </div>
  
      <div class="post-nav-item post-nav-prev">
          
          <a href="/2019/12/31/%E7%BD%91%E6%98%93%E5%A4%A7%E9%80%9A%E6%A0%8F-%E7%99%BE%E9%9D%92%E8%97%A4%E5%B9%BF%E5%91%8A%EF%BC%88%E7%99%BE%E5%BA%A6%EF%BC%89%E5%A1%AB%E5%85%85/" rel="prev" title="网易大通栏 - 百青藤广告（百度）填充">
            网易大通栏 - 百青藤广告（百度）填充
          </a>
          <span>〉</span>
        
      </div>
    </div>
  



    </div>

    

  </div>
  <footer class="footer text-center">
    <div id="bottom-inner">
        <a class="bottom-item" href="https://github.com/irtb" target="_blank">GitHub</a> |
        <a class="bottom-item" href="/links">友情链接</a> |
        <a class="bottom-item" href="https://hexo.io" target="_blank">Powered by hexo</a> |
        <a class="bottom-item" href="https://github.com/fooying/hexo-theme-xoxo-plus" target="_blank">Theme xoxo-plus</a>
        <a href="https://beian.miit.gov.cn/" target="_blank">京ICP备15011709号-1</a>
    </div>
</footer>

  
</body>
</html>
